import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  index: true,
  indexLabel: i18n.t('number'),
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  menu: false,
  delBtn: false,
  column: [
    {
      label: i18n.t('users.name'),
      search: true,
      prop: 'nickName'
    },
    {
      label: i18n.t('user.source'),
      prop: 'source',
      search: true,
      type: 'select',
      slot: true,
      dicData: [
        {
          label: i18n.t('user.order'),
          value: 1
        }, {
          label: i18n.t('user.levelUp'),
          value: 2
        }, {
          label: i18n.t('user.signIn'),
          value: 3
        }
      ]
    },
    {
      label: i18n.t('order.score'),
      prop: 'score'
    },
    {
      label: i18n.t('order.number'),
      search: true,
      prop: 'orderNumber'
    },
    {
      label: i18n.t('shop.ioType'),
      prop: 'ioType',
      search: true,
      type: 'select',
      slot: true,
      dicData: [
        {
          label: i18n.t('shop.pay'),
          value: 0
        }, {
          label: i18n.t('shop.income'),
          value: 1
        }
      ]
    },
    {
      label: i18n.t('sys.creationTime'),
      prop: 'createTime'
    }
  ]
}
